﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class AccoutLogin : Message
    {
        public static int TYPE = 7;
        public static int ID = 149;

        private string ACCount;
        private string Pass;

        public static  AccoutLogin Create(string a,string p) {
            AccoutLogin ac = new login.AccoutLogin();
            ac.ACCount = a;
            ac.Pass = p;
            return ac;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeString(ACCount);
            _out.writeString(Pass);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "ACCount"+ ACCount+"pas"+Pass;
        }
    }
}
